var mysql = require("./../mysql.js");
var mysqlObj = new mysql();


//mysqlObj.update("update test.test set source=3 where id=5").then(
//    function(rows){
//        console.log(rows);
//        return rows[0];
//    },
//    function(e){
//        console.log(e)
//    }
//)

//mysqlObj.delete("delete from test.test where id>=9 and id<=12").then(
//    function(rows){
//        console.log(rows);
//    },
//    function(e){
//        console.log(e)
//    }
//)

//mysqlObj.insert("insert into test.test set uid=5147,source=16,time=132122207").then(function(data){
//    console.log(data);
//})

mysqlObj.insertMoreJson("test.test",[{uid:5147,source:16,time:132122208},{uid:5147,source:16,time:132122209},{uid:5147,source:16,time:132122219}]).then(function(data){
    console.log(data);
},function(err){
    console.log(err);
})